const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        sex: {
            type: Number,
            default: 0 //性别0男1女2未知
        },
        birthday:String,//生日
        userId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'User'//用户id
        },
        nationality: mongoose.Schema.Types.Mixed,//国籍
        deliveryCity: mongoose.Schema.Types.Mixed,//市
        deliveryDistrict: mongoose.Schema.Types.Mixed,//区
        deliveryProvince: mongoose.Schema.Types.Mixed,//省
        deliveryAddress:String,//详情地址
        receiver:String,//收件人
        receiverTel:String,//收件人手机号
        authType: {
            type: Number,
            default: 0 //0未选1全日制2兼职研究生3online4合作办校
        },
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'tbl_base_user_info'});

    return schema;
    //return mongoose.model('Active', schema);
};